package com.bi.onlineEducation.exception;

import lombok.Data;

@Data
public class BizException extends RuntimeException{
    //错误编码
    private Integer errorCode;
    //错误描述
    private String errorMsg;

    public BizException() {
        super();
    }

    public BizException(String errorMsg) {
        super(errorMsg);
        this.errorMsg = errorMsg;
    }

    public BizException(Integer errorCode, String errorMsg) {
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public BizException(Integer errorCode, String errorMsg, Throwable cause) {
        super(errorMsg,cause);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

}
